package com.hhdys.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.hhdys.model.Account;

public interface AccountService {
	Account selAccountByUsernameAndPwd(String username,String pwd);
	
	Account getAccountByUserName(String username);
	
	int updatePwd(String passwd,String oldPasswd,int userId);
	
	List<Map<String, Object>> accoutsShow(String username,int curPage,int pageSize);
	
	int accoutCount(String username);
	
	boolean addAccount(Account account);
	
	boolean delAccount(String ids);
	
	int getAccountsByUserName(String username);
	
	boolean changeAccountStat(int stat,int account);
	
	Account getAccountById(int id);
	
	boolean editAccount(Account account);
	
	void updateLastLoginTime(Map<String, Object> map);
	
	List<Account> getAccountsByRole(int role);
	
	Set<Integer> selectPageIdsByAccountId(int accountId);
}
